package leafnode

//replication factor - #followers
const (
	FullReplFactor = 2
)

//log address
const (
	ErrLogFileName  = "tfnode_err.log"
	WorkLogFileName = "tfnode_work.log"
	InfoLogFileName = "tfnode_info.log"
)

//system parameters
const (
	MaxServerId          = (1 << 20)
	NormalWakeUpPeriod   = 5         //min
	AbnormalWakeUpPeriod = 5         //min
	DataSyncBufSize      = (1 << 20) //1MB
	MaxDiskErrors        = 100
)

//server state
const (
	DiskAlreadyFull = 0
	ReplGroupReady  = 1
	ReplGroupSplit  = 2
	InRecovery      = 3
	ShuttingDown    = 4
	DiskCorrupted   = 5
)
